package com.example.dubbo.provider;

import org.springframework.context.support.ClassPathXmlApplicationContext;



public class DubboProvider {
	/**
     * Title: main<br/>
     * Description: <br/>
     * @author Devin
     * @date 2016年1月6日上午9:32:41
     *
     * @param args
     */
    public static void main(String[] args) {
        try {
            ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:/spring/*Beans.xml");
            context.start();
        } catch (Exception e) {
            
            System.err.println("== DubboProvider context start error ==");
            e.printStackTrace();
        }
        synchronized (DubboProvider.class) {
            while (true) {
                try {
                    DubboProvider.class.wait();
                } catch (InterruptedException e) {
                    
                    System.err.println("== synchronized error ==");
                    e.printStackTrace();
                }
            }
        }

    }
}
